package com.tmeone.erpone.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;


public class TStaff {

  private String id;
  private String loginAccount;
  private String password;
  private String name;
  private String no;
  private String tel;
  @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime entryTime;
  private String accountStatus;
  private String grade;
  private String status;
  private String pId;
  private String cId;

  public TStaff() {
  }

  private String dId;

  public TStaff(String id, String loginAccount, String password, String name, String no, String tel, LocalDateTime entryTime, String accountStatus, String grade, String status, String pId, String cId, String dId) {
    this.id = id;
    this.loginAccount = loginAccount;
    this.password = password;
    this.name = name;
    this.no = no;
    this.tel = tel;
    this.entryTime = entryTime;
    this.accountStatus = accountStatus;
    this.grade = grade;
    this.status = status;
    this.pId = pId;
    this.cId = cId;
    this.dId = dId;
  }

  public String getId() {
    return id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public String getLoginAccount() {
    return loginAccount;
  }

  public void setLoginAccount(String loginAccount) {
    this.loginAccount = loginAccount;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getNo() {
    return no;
  }

  public void setNo(String no) {
    this.no = no;
  }

  public String getTel() {
    return tel;
  }

  public void setTel(String tel) {
    this.tel = tel;
  }

  public LocalDateTime getEntryTime() {
    return entryTime;
  }

  public void setEntryTime(LocalDateTime entryTime) {
    this.entryTime = entryTime;
  }

  public String getAccountStatus() {
    return accountStatus;
  }

  public void setAccountStatus(String accountStatus) {
    this.accountStatus = accountStatus;
  }

  public String getGrade() {
    return grade;
  }

  public void setGrade(String grade) {
    this.grade = grade;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getpId() {
    return pId;
  }

  public void setpId(String pId) {
    this.pId = pId;
  }

  public String getcId() {
    return cId;
  }

  public void setcId(String cId) {
    this.cId = cId;
  }

  public String getdId() {
    return dId;
  }

  public void setdId(String dId) {
    this.dId = dId;
  }

  public String getDepartment() {
    return department;
  }

  public void setDepartment(String department) {
    this.department = department;
  }

  public String getPost() {
    return post;
  }

  public void setPost(String post) {
    this.post = post;
  }

  //  所属部门
  @TableField(exist = false)
  private  String department;
//  职位
  @TableField(exist = false)
  private  String post;
//所属公司
  @TableField(exist = false)
  private  String companyName;
  //公司地址
  @TableField(exist = false)
  private  String companyAddress;

  //公司个人说明
  @TableField(exist = false)
  private  String companyIntroduction;

  public String getCompanyName() {
    return companyName;
  }

  public void setCompanyName(String companyName) {
    this.companyName = companyName;
  }

  public String getCompanyAddress() {
    return companyAddress;
  }

  public void setCompanyAddress(String companyAddress) {
    this.companyAddress = companyAddress;
  }

  public String getCompanyIntroduction() {
    return companyIntroduction;
  }

  public void setCompanyIntroduction(String companyIntroduction) {
    this.companyIntroduction = companyIntroduction;
  }
}
